//
//  QLFilterView.h
//  QLCustomCamera_Example
//
//  Created by 李强 on 2020/9/1.
//  Copyright © 2020 李强LiQ. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "GPUImage.h"

NS_ASSUME_NONNULL_BEGIN


typedef NS_ENUM(NSInteger,filterViewStyle) {
    blackViewStyle,
    whiteViewStyle,
};

@protocol QLFilterViewDelegate <NSObject>

-(void)changeFilter:(GPUImageFilter *)filter currentFilterIndex:(NSInteger)currentFilterIndex;

@end


@interface QLFilterView : UIView

@property (nonatomic,weak)id <QLFilterViewDelegate> delegate;
@property (nonatomic,assign)filterViewStyle viewStyle;
//当前滤镜
@property (nonatomic,assign)NSInteger currentFilterIndex;
//重置初始化
-(void)resetInitFilter;

@end


@interface QLFilterModel : NSObject
@property (nonatomic,strong)NSString *filterName;
@property (nonatomic,strong)NSString *filterClass;
@property (nonatomic,strong)NSString *filterImage;
@property (nonatomic,assign)BOOL isSelected;
@end

NS_ASSUME_NONNULL_END
